package com.yang.core;

public class HttpSample {
    private String label = "";
    private int elapsed;
    private long timeStamp;
    private long endTimeStamp;
    private String error = "";
    private int sentBytes;
    private int receivedBytes;

    public HttpSample() {
    }

    public HttpSample(long timeStamp, int elapsed, String label, String error, int receivedBytes, int sentBytes) {
        this.label = label;
        this.elapsed = elapsed;
        this.timeStamp = timeStamp;
        this.error = error;
        this.sentBytes = sentBytes;
        this.receivedBytes = receivedBytes;
        this.endTimeStamp = timeStamp + elapsed;
    }


    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public int getElapsed() {
        return elapsed;
    }

    public void setElapsed(int elapsed) {
        this.elapsed = elapsed;
    }

    public long getTimeStamp() {
        return timeStamp;
    }

    public void setTimeStamp(long timeStamp) {
        this.timeStamp = timeStamp;
    }

    public long getEndTimeStamp() {
        return endTimeStamp;
    }

    public void setEndTimeStamp(long endTimeStamp) {
        this.endTimeStamp = endTimeStamp;
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }

    public int getSentBytes() {
        return sentBytes;
    }

    public void setSentBytes(int sentBytes) {
        this.sentBytes = sentBytes;
    }

    public int getReceivedBytes() {
        return receivedBytes;
    }

    public void setReceivedBytes(int receivedBytes) {
        this.receivedBytes = receivedBytes;
    }
}
